package com.yunji.cabinet.dto.device;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CabinetCargoInfoDTO {

    @ApiModelProperty("格子序号")
    @NotNull(message = "格子序号")
    private Integer ordinal;
    @ApiModelProperty("商品ID")
    @NotNull(message = "商品ID")
    private Long productId;
    @ApiModelProperty("补货数量")
    @NotNull(message = "补货数量")
    @Min(value = 0,message = "补货数量不能小于0")
    private Integer cargoNums;
    @ApiModelProperty("商品总数")
    @NotNull(message = "商品总数不能为空")
    @Min(value = 0,message = "商品总数不能小于0")
    private Integer productNums;

}
